package com.chixing.day08_interface.work;

import java.util.Collections;

class Test {
    public static void main(String[] args) {
        PersonOrder personOrder = new PersonOrder();
        personOrder.setUsername("张三");
        personOrder.setNumber(5000);
        personOrder.splitOrder(personOrder);

        CompanyOrder companyOrder = new CompanyOrder("李四");
        companyOrder.setNumber(3500);
        companyOrder.splitOrder(companyOrder);

        //遍历ArrayList
        for (int i = 0; i < AllOrder.OrderArray.size(); i++) {
            System.out.println(AllOrder.OrderArray.get(i));
        }
    }
}
